<?php
echo "<dl>";
if (is_array($this->_fields)) {
  foreach ($this->_fields as $field) {
    $label = $field->getLabel();
    if ($label === false) {
      echo $field->getHtml();
    } else {
      echo sprintf('<dt><label>%s</label></dt><dd>%s</dd>', $label, $field->getHtml());
    }
  }
}
echo "</dl>";